package com.ford.trade.enums;

/**
 * @author :  zhangfutao
 * @version :  V-1.0
 * @description :
 * @date :   2022/8/15 11:38
 */
public enum MakerEnum {

    Winner(592,"Winner"),
    Fortuna(125,"Fortuna"),
    Interwetten(43,"Interwetten"),
    Miseojeu(385,"Miseojeu"),
    BetVictor(560,"BetVictor"),
    e_stave(408,"e-stave"),
    Intralot(344,"Intralot"),
    Sportsbet(412,"Sportsbet"),
    Stanleybet(60,"Stanleybet"),
    SuperSport(471,"SuperSport"),
    ;

    public Integer makerId;
    public String companyName;

    MakerEnum(Integer makerId, String companyName) {
        this.makerId = makerId;
        this.companyName = companyName;
    }

    public static MakerEnum get(Integer makerId) {
        for (MakerEnum type : values()) {
            if (makerId.toString().equals(type.makerId.toString())) {
                return type;
            }
        }
        return null;
    }

    public Integer getMakerId() {
        return makerId;
    }

    public void setMakerId(Integer makerId) {
        this.makerId = makerId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }}
